package sdmakerz_v1.coresyntax.generator

class SDMakerV1IDProvider {
	private static int id=0;
	private static int minID=0;

	def static int computeID() {
		var int nextID= id;
		id= id + 1;
		return nextID;
	}
	
	def static void reinitIDs() {
		id= minID;
	}
	
	def static void setMinimalIDNumber(int min) {
		minID=min;
		
		if(minID > id){
			id= minID;
		}
	}
}
